package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.Db;
import com.srit.migration.business.dao.DbDao;
import com.srit.migration.business.service.DbService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
 @Service
public class DbServiceImpl implements DbService {
	@Autowired(required = true)
	private DbDao dbDao;

	@Override
	public void save(Db db) {
		dbDao.save(db);
	}

	@Override
	public void update(Db db) {
		dbDao.update(db);
	}

	@Override
	public Db getById(Db db) {
		return (Db) dbDao.getById(db);
	}

	@Override
	public void delete(Db db) {
		dbDao.delete( db);
	}

	@Override
	public void page(Page page) {
		dbDao.page( page);
	}
	
	@Override
	public void batchSave(List<Db> dbList) {
		dbDao.batchSave(dbList);

	}

	@Override
	public List list(Page page) {
		return dbDao.list( page);
	}

}
